package com.sdd.rpi_mobile.resourceLists;

import android.content.Context;
import android.content.Intent;
import android.widget.ArrayAdapter;

/**
 * Interface to populate ListView objects with information 
 * and give Intent for next activity
 */
public interface ListViewLoader {
	/**
	 * Gets an ArrayAdapter containing names of the list items
	 * @param resId
	 * @return ArrayAdapter containing a String[]
	 */
	ArrayAdapter<String> getArrayAdapter(int resId);
	/**
	 * Gets the Intent necessary to show the data 
	 * referenced in the backing array
	 * 
	 * @param context
	 * Context of calling activity
	 * @param resId
	 * Resource ID of data
	 * @param pos 
	 * position in backing array of item 
	 * @return Intent to show item
	 */
	Intent getIntent(Context context, int resId, int pos);
}
